package ru.spbau.krasko.phonelock.main;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class GlobalTimerExecutor {
	public static final Timer INSTANCE = new Timer();
	
	public static void scheduleAtFixedRate(final Runnable task, int ms) {
		INSTANCE.scheduleAtFixedRate(new TimerTask() {			
			public void run() {
				task.run();
			}
		}, new Date(), ms);
	}
}
